<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>静态操作</title>
    <link href="css/page.css" type="text/css" rel="stylesheet">
</head>

<body>
    
    <div id="page">

    </div>
</body>
<script src="js/page.js"></script>
<script>

    new Page({
        el: "#page",
        data: {
            total: 101,//数据总数是100,
            shownum: 10,//表示每页显示10条数据
            showpage: 5,//表示连续的页码数为5
        },
        methods: {
            cb: (index) => {//回调
                alert("去请求第" + index + "页的数据");
            }
        }

    })


</script>

</html>